package com.spring.aop.service;

import org.springframework.aop.framework.AopContext;
import org.springframework.stereotype.Component;

/**
 * 每一行代码，都是改变世界的力量
 *
 * @author 郭帅
 * @date 2021/11/1 11:24 下午
 */
@Component("people")
public class People implements IPeople {

    public void say() {
        AopContext.currentProxy();
        System.out.println("我会说话");
        throw new RuntimeException("异常");
    }
}
